﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;

namespace JKDD.Patient
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.lbl_shownoanswer.Text = "";
                initialization();
            }
        }

        void initialization()
        {
            int patientID = 1;
            DataTable messList = new DataTable();
            messList = PatientBLL.getMessList(patientID);
            if (messList == null)
            {
                //没有历史咨询

                this.txt_mess.Text = "暂时没有回复";
                this.lbl_shownoanswer.Text = "暂时没有咨询";
                return;
            }

            ////取结果的第一项加载留言版上，其余的以标题形式显示在列表中
            //int answerornot = 0;
            //answerornot = Convert.ToInt32(messList.Rows[0]["NANSWER"].ToString());

            //this.txt_answer.Text = messList.Rows[0][""].ToString();
        }
    }
}
